projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c06a08d
)
Initialise out variable
author
Emmanuele Bassi
<ebassi@gnome.org>
Wed, 29 Jan 2020 10:34:11 +0000
(11:34 +0100)
committer
Emmanuele Bassi
<ebassi@gnome.org>
Tue, 11 Feb 2020 13:39:52 +0000
(13:39 +0000)
Otherwise we might return an undefined value, and the compiler will be
very cross at us.
gdk/broadway/gdkdevice-broadway.c
patch
|
blob
|
history
diff --git
a/gdk/broadway/gdkdevice-broadway.c
b/gdk/broadway/gdkdevice-broadway.c
index 801b021c569d36e0bbb98e9d0db17004dc752a5a..52ffa719db6a68557fcd7619f8d2665e394510b2 100644
(file)
--- a/
gdk/broadway/gdkdevice-broadway.c
+++ b/
gdk/broadway/gdkdevice-broadway.c
@@
-303,7
+303,7
@@
gdk_broadway_device_surface_at_position (GdkDevice *device,
GdkModifierType *mask,
gboolean get_toplevel)
{
- GdkSurface *surface;
+ GdkSurface *surface
= NULL
;
gdk_broadway_device_query_state (device, NULL, &surface, NULL, NULL, win_x, win_y, mask);